//战役回合起始图标

var subtitles = {
	
	ShowOnce : function(text, font, fontSize){
		font = font || "simhei";
		fontSize = fontSize || 84;
		
		var winSize = cc.director.getWinSize();
		
		var label = cc.LabelTTF.create(text, font, fontSize);
		label.attr({
			x: 0.5 * winSize.width,
			y: 0.5 * winSize.height
		});
		campaignScene.canvaslayer.addChild(label);
		label.runAction(cc.sequence(cc.delayTime(campaignScene.canvaslayer.hideDuration),
				cc.removeSelf()));
	},
	
	GetNewStepText : function(){
		var step = campaign.time_ref.current_step + 1;
		var forceid = (campaign.time_ref.force_of_step + 1) % campaign.force.length;
		return "第 " + step + " 回合\n\n"
		+ campaign.force[forceid].name + "\n\n("
		+ campaign.time_ref.time[1]
		+ "/" + Math.floor(campaign.time_ref.time[2])
		+ "/" + campaign.time_ref.time[0] + ")";
	}
};